package cn.com.open.opensaas.answerservice.mapper;

import cn.com.open.opensaas.answerservice.model.CourseItemBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CourseItemBankMapper {

    /**
     * 安全认证
     * @param itemBankId
     * @param appkey
     * @return
     */
    @Select("SELECT TOP 1 * FROM CourseItemBank WHERE ItemBankID = #{itemBankId} AND AppID = #{appkey}")
    CourseItemBank findCourseItemBankOne(@Param("itemBankId") String itemBankId, @Param("appkey") String appkey);
}
